interface CommonUnit {
  value?: number;
  code?: string;
  label?: string;
}

export type UserPrivileges = CommonUnit;
export type UserRole = CommonUnit;
export type UserStatus = CommonUnit;

export declare interface UserInfo {
  username?: string;
  id?: number;
  created_at?: number;
  updated_at?: number;
  deleted_at?: number;
  active_at?: number;
  deadline?: number;
  login_at?: number;
  group_id?: number;
  group_name?: string;
  nickname?: string;
  comment?: string;
  created_by_id?: number;
  created_by_name?: string;
  status?: UserStatus;
  role?: UserRole;
  privileges?: UserPrivileges[];
}
